Replace invalid byte sequence with unicode replacement character.
